import { Directive, Input } from "@angular/core";
import { Graph, Node } from '@antv/x6';
import { GraphService } from "src/app/util/graph.service";


@Directive()
export class Parent {
  @Input() currentNode: Node<Node.Properties> | undefined;

  graph: Graph | undefined;

  constructor(public graphService: GraphService) {
    this.graphService!.graph$.subscribe(graph => {
      this.graph = graph;
    });
  }
}
